<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/8/31
  Time: 14:44
  To change this template use File | Settings | File Templates.
--%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>Title</title>
    <link href="<%=basePath%>static/css/style.css" rel="stylesheet" type="text/css"/>
    <script language="JavaScript" src="<%=basePath%>static/js/jquery.js"></script>

    <script type="text/javascript">
        $(function () {
            //导航切换
            $(".menuson li").click(function () {
                $(".menuson li.active").removeClass("active")
                $(this).addClass("active");
            });

            $('.title').click(function () {
                var $ul = $(this).next('ul');
                $('dd').find('ul').slideUp();
                if ($ul.is(':visible')) {
                    $(this).next('ul').slideUp();
                } else {
                    $(this).next('ul').slideDown();
                }
            });
        })
    </script>


</head>

<body style="background:#f0f9fd;">
<div class="lefttop"><span></span>通讯录</div>

<dl class="leftmenu">
        <shiro:hasPermission name="product:menu">
            <dd>
                <div class="title">
                    <span><img src="<%=basePath%>static/images/leftico01.png"/></span>生产管理
                </div>
                <ul class="menuson">
                    <shiro:hasPermission name="product:list">
                        <li class="active"><cite></cite><a href="<%=basePath%>productController/list.do"
                                                           target="rightFrame">产品信息</a><i></i></li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="good:list">
                        <li><cite></cite><a href="<%=basePath%>goodController/list.do"
                                            target="rightFrame">原料信息</a><i></i></li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="plan:list">
                        <li><cite></cite><a href="<%=basePath%>planController/planlist.do"
                                            target="rightFrame">生产计划</a><i></i></li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="meterials:list">
                        <li><cite></cite><a href="<%=basePath%>materialsController/list.do"
                                            target="rightFrame">产品原料对应</a><i></i></li>
                    </shiro:hasPermission>
                </ul>
            </dd>
        </shiro:hasPermission>
        <shiro:hasPermission name="order:menu">
            <dd>
                <div class="title">
                    <span><img src="<%=basePath%>static/images/leftico01.png"/></span>订单管理
                </div>
                <ul class="menuson">
                    <shiro:hasPermission name="order:list">
                    <li class="active"><cite></cite><a href="<%=basePath%>orderController/list.do" target="rightFrame">订单信息</a><i></i>
                    </li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="order:list:send">
                    <li><cite></cite><a href="<%=basePath%>orderController/listSend.do"
                                        target="rightFrame">已发货订单</a><i></i></li>
                    </shiro:hasPermission>
                </ul>
            </dd>
        </shiro:hasPermission>
        <shiro:hasPermission name="purchase:menu">
            <dd>
                <div class="title">
                    <span><img src="<%=basePath%>static/images/leftico01.png"/></span>采购管理
                </div>
                <ul class="menuson">
                    <shiro:hasPermission name="purchase:list">
                    <li class="active"><cite></cite><a href="<%=basePath%>purchaseController/list.do"
                                                       target="rightFrame">采购单管理</a><i></i></li>
                    </shiro:hasPermission>
                </ul>
            </dd>
        </shiro:hasPermission>
        <shiro:hasPermission name="repertory:menu">
            <dd>
                <div class="title">
                    <span><img src="<%=basePath%>static/images/leftico01.png"/></span>库存管理
                </div>
                <ul class="menuson">
                    <shiro:hasPermission name="repertory:list">
                    <li class="active"><cite></cite><a href="<%=basePath%>repertoryController/list.do"
                                                       target="rightFrame">原料产品库存管理</a><i></i></li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="in:repertory">
                        <li><cite></cite><a href="<%=basePath%>repertoryController/in.do"
                                        target="rightFrame">原料产品入库管理</a><i></i></li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="out:repertory">
                    <li><cite></cite><a href="<%=basePath%>repertoryController/out.do"
                                        target="rightFrame">原料产品出库管理</a><i></i></li>
                    </shiro:hasPermission>
                </ul>
            </dd>
        </shiro:hasPermission>
        <shiro:hasPermission name="sale:menu">
            <dd>
                <div class="title">
                    <span><img src="<%=basePath%>static/images/leftico01.png"/></span>销售管理
                </div>
                <ul class="menuson">
                    <shiro:hasPermission name="sale:list">
                    <li class="active"><cite></cite><a href="<%=basePath%>saleController/list.do" target="rightFrame">销售单管理</a><i></i>
                    </li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="sale:list:send">
                    <li><cite></cite><a href="<%=basePath%>saleController/listSend.do"
                                        target="rightFrame">已结款销售单</a><i></i></li>
                    </shiro:hasPermission>
                </ul>
            </dd>
        </shiro:hasPermission>

        <shiro:hasPermission name="base:menu">
            <dd>
                <div class="title">
                    <span><img src="<%=basePath%>static/images/leftico01.png"/></span>基础信息
                </div>
                <ul class="menuson">
                    <shiro:hasPermission name="base:user">
                    <li class="active"><cite></cite><a href="<%=basePath%>baseController/user.do" target="rightFrame">客户管理</a><i></i>
                    </li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="base:supplier">
                    <li><cite></cite><a href="<%=basePath%>baseController/supplier.do"
                                        target="rightFrame">供应商管理</a><i></i></li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="base:good">
                    <li><cite></cite><a href="<%=basePath%>baseController/good.do" target="rightFrame">原料管理</a><i></i>
                    </li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="base:product">
                    <li><cite></cite><a href="<%=basePath%>baseController/product.do"
                                        target="rightFrame">产品管理</a><i></i></li>
                    </shiro:hasPermission>
                </ul>
            </dd>
        </shiro:hasPermission>
        <shiro:hasPermission name="sys:menu">
            <dd>
                <div class="title">
                    <span><img src="<%=basePath%>static/images/leftico01.png"/></span>系统管理
                </div>
                <ul class="menuson">
                    <shiro:hasPermission name="sys:user">
                    <li class="active"><cite></cite><a href="<%=basePath%>userController/list.do" target="rightFrame">用户管理</a><i></i>
                    </li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="sys:role">
                    <li><cite></cite><a href="<%=basePath%>roleController/list.do" target="rightFrame">角色管理</a><i></i>
                    </li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="sys:permission">
                    <li><cite></cite><a href="<%=basePath%>permissionController/list.do"
                                        target="rightFrame">权限管理</a><i></i></li>
                    </shiro:hasPermission>
                </ul>
            </dd>
        </shiro:hasPermission>
</dl>
</body>
</html>

